<html>
<head>
<title>eLGU - RPTS - {TITLE}</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--

/*
	Class : RPUFactory
	Author: Juanito M. Calingacion, Jr.
	Date  : 2003
			Modified Dec 07, 2005 for Lubao implementation of eRPTS
			
	Description: Implements or rather extends DBFactory. Reads data from an eRPTS database
			     Using the Recordset Library
			     Used by custom.rpu.phc that provides the core classes to retrieve real property information
			     from the database

	Mod'ed: alxjvr, 2006.02.27
*/

function jumpPage() {
	gopage = parseInt(document.getElementById("jumppage").value);
	if (isNaN(gopage))
	{
		return false;
	}
	maxpages = parseInt(document.getElementById("totalpages").value);
	currpage = parseInt(document.getElementById("currpage").value);
	if (gopage < 1 || gopage > maxpages)
	{
		alert("Invalid Page!  Page Number should only range from 1 to " + maxpages);
		return false;
	}
	if (gopage == currpage)
	{
		return false;
	}
	location.replace("companyrptopsearch.php{Session}&module={module}&companyName={companyName}&offpage="+gopage);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
<script language="Javascript1.2">
<!--
function openWin(strLink, strWindow, intLeft, intTop, intWidth, intHeight){
	puffup = window.open(strLink, strWindow, "position:absolute; left="+intLeft+", top="+intTop+", width="+intWidth+", height="+intHeight+", toolbar=no, scrollbars=yes, resizable=yes, menubar=no, location=no, status=no");
	puffup.focus(true);
}
function checkAction(axn){
	document.AFSList.formAction.value = axn;
	
	//alert(document.AFSList.formAction.value);
	if (confirmSubmit())
	document.AFSList.submit();
}
function confirmSubmit(){
	axn = document.AFSList.formAction.value;
	if(!confirm(axn+' selected items?'))
		return false;
	else
		return true;
}
function setDefaults(){
	document.getElementById("companyName").focus();
	//document.AFSList.searchKey.focus();
}
//-->
</script>
<link href="css/elgu.css" rel="stylesheet" type="text/css">
</head>
<body BGCOLOR=#999999 link="#333333" vlink="#333333" alink="#333333" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 onLoad="javascript: setDefaults();">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr>
    <td align="center" valign="top"><table WIDTH=100 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
        <tr>
          <td> <img SRC="images/inner_01.jpg" WIDTH=18 HEIGHT=9 ></td>
          <td> <img SRC="images/inner_02.jpg" WIDTH=27 HEIGHT=9 ></td>
          <td COLSPAN=2> <img SRC="images/inner_03.jpg" WIDTH=598 HEIGHT=9 ></td>
          <td COLSPAN=3 ROWSPAN=2><img SRC="images/steps/step00.jpg" WIDTH=157 HEIGHT=133 ></td>
        </tr>
        <tr>
          <td> <img SRC="images/inner_05.jpg" WIDTH=18 HEIGHT=124 ></td>
          <td> <img SRC="images/inner_06.jpg" WIDTH=27 HEIGHT=124 ></td>
          <td COLSPAN=2 bgcolor="#CCCCCC"> <img SRC="images/title/title_rpu_management.jpg" WIDTH=598 HEIGHT=124 ></td>
        </tr>
        <tr>
          <td> <img SRC="images/inner_08.jpg" WIDTH=18 HEIGHT=53 ></td>
          <td> <img SRC="images/inner_09.jpg" WIDTH=27 HEIGHT=53 ></td>
          <td COLSPAN=3 align="left" valign="top" bgcolor="#CCCCCC">
            <table WIDTH=702 BORDER=0 CELLPADDING=0 CELLSPACING=0>
              <tr>
		<td width="72"> <img SRC="images/nav/nav_a_01.jpg" WIDTH=72 HEIGHT=53 ></td>
		<td align="center" valign="middle" background="images/nav_area_bg.jpg"><table width="100%%" border="0" cellspacing="0" cellpadding="0">
		  <tr align="center"> 
		   <td width="0" align=left class="common" colspan=4><b>{uname}</b> : {today}</td>
		   <td width="0" align=right colspan=5>
		    <a href="AssessorsHome.php{session}" class="navi" title="Assessor's Module : Home">AM : Home</a>
			<font class="navi">&lt;</font>
			<a href="home.php{session}" class="navi" title="Home">Home</a>		    
		    <font class="navi">|</font>
			<a href="Logout.php" class="navi" title="Logout">Logout</a>
			<br>&nbsp;
		   </td>
		  </tr>

		  <tr align="center"> 
		   <td width="0" nowrap align=center><a href="RPUManagementHome.php{session}" class="navi" title="RPU Management">RPU Management</a></td>
		   <td width="0" class="navi">|</td>

		   <td width="0" nowrap align=center><a href="ODList.php{session}" class="navi" title="Real Property Units (RPU List)">RPU List</a></td>
		   <td width="0" class="navi">|</td>

		   <td width="0" nowrap><a href="AFSList.php{session}" class="navi" title="Field Appraisal & Assessment Sheet (FAAS List)">FAAS List</a></td>
		   <td width="0" class="navi">|</td>

		   <td width="0" nowrap><a href="TDList.php{session}" class="navi" title="Tax Declaration (TD List)">TD List</a></td>
		   <td width="0" class="navi">|</td>

		   <td width="0" nowrap><a href="RPTOPList.php{session}" class="navi" title="Real Property Tax Order of Payment (RPTOP List)">RPTOP List</a></td>

		  </tr>
		 </table></td>
		<td width="75"> <img SRC="images/nav/nav_a_08.jpg" WIDTH=75 HEIGHT=53 ></td>
	   </tr>
            </table>
          </td>
          <td> <img SRC="images/inner_11.jpg" WIDTH=36 HEIGHT=53 ></td>
          <td> <img SRC="images/inner_12.jpg" WIDTH=17 HEIGHT=53 ></td>
        </tr>
        <tr>

	 <td align="center" valign="top"> <img SRC="images/inner_13.jpg" WIDTH=18 HEIGHT=375 ></td>
          <td background="images/inner_14.jpg"> <img SRC="images/spacer.gif" WIDTH=27 HEIGHT=1 ></td>
          <td COLSPAN=3 align="left" valign="top" background="images/bg_middle.jpg" bgcolor="#CCCCCC">
            <table width="702" height="375" border="0" cellpadding="0" cellspacing="0" background="images/background/bg_middle.jpg">
              <tr>
                <td align="left" valign="top">
                  <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr>
                      <td align="center" valign="top" class="subtitle">
                        <table width="90%" border="0" cellspacing="0" cellpadding="0">
						  <tr>
							<td colspan=2>&nbsp;</td>
						  </tr>
                          <tr>
                            <td class="subtitle">Search for RPTOP by Company Name</td>
                            <td align="right" valign="top"><a href="#down"><img src="images/arrow_down.gif" width="40" height="30" border="0"></a></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td align="center" valign="top" class="title"><img src="images/spacer.gif" width="10" height="15"></td>
                    </tr>
                    <tr>
                      <td align="center" valign="top">
                        <form name="AFSList" method="post" action="companyrptopsearch.php{session}">
                          <input type="hidden" name="formAction" value="search">
						  <input type="hidden" name="viewArchives" value="{viewArchives}">
						  <input type="hidden" name="archiveValue" value="{archiveValue}">
						  <input type="hidden" name="sortBy" value="{sortBy}">
						  <input type="hidden" name="sortOrder" value="{sortOrder}">

                          <table width="90%" border="0" cellspacing="1" cellpadding="2">
                            <tr>
                              <td class="fileds_comment" colspan="7" bgcolor="#F6F6F6">
								<table width="90%" border="0" cellspacing="1" cellpadding="2">	
									<tr>
										<td class="fileds_comment"><b>company name</b></td>
									</tr>
									<tr>
										<td>
											<input type="text" id="companyName" name="companyName" value="{companyName}" size="30" maxlength="30">
											<input type="button" name="SubmitSearch" value="Search" onClick="document.AFSList.submit();"> 
										</td>
									</tr>
								</table>
                              </td>
                            </tr>
						  </table>

                          <table width="90%" border="0" cellspacing="1" cellpadding="2" style="display:{showresults};">
                            <tr>

							<td class="fileds_comment" colspan="7" bgcolor="#F6F6F6">
	                                {pageOf} </td>
                            </tr>

							<tr align="center" bgcolor="#dddddd" nowrap>
                             <td width="55px" class="fileds_comment" align=center nowrap>
								RPTOP ID
							  </td>
                              <td class="fileds_comment" align=left>
								Owner Name </td>
                              <td class="fileds_comment" width="120px"> 
                                <p>Total Market Value</p>
                              </td>
                              
							 <td class="fileds_comment"  width="120px">
								Total Assessed Value
							 </td>
                              <td class="fileds_comment" width="40px">
                              </td>
                             </tr>
                            <!-- BEGIN RPTOPLIST -->
                            <tr valign="top" align="left">
                              <td class="fileds_comment" bgcolor="#F6F6F6" align=center><b>{rptopID}</b>&nbsp;</td>
                              <td class="fileds_comment" bgcolor="#F6F6F6"> <b>{ownerName}</b></td>
							   <td align="right" bgcolor="#F6F6F6" class="fileds_comment"><b>{totalMarketValue}</b></td>
							   <td align="right" bgcolor="#F6F6F6" class="fileds_comment"><b>{totalAssessedValue}</b></td>
                              
							  <td class="fileds_comment" align="center" bgcolor="#F6F6F6">
                                {rptopDetailsLinkLabel}
                              </td>
                            </tr>
				
                            <!-- END RPTOPLIST -->
                          </table>
						  <table width="90%" border="0" cellspacing="1" cellpadding="2" style="display:{shownofind};">
							<tr>
								<td style="background-color:white;">
									<font color="red"><i><b>
										no company owner record found for that search key!!!</i></b>
									</font>
								</td>
							</tr>
						  </table>
						  <table width="90%" border="0" cellspacing="1" cellpadding="2"  style="display:{showresults};"> <!-- style="display:{shownav};"> -->
                            <tr>
								<td colspan="3" class="fileds_comment">
									<b><font color="blue">
									{shown}
									</b></font>
								</td>
								<td colspan="4" class="fileds_comment" style="text-align:right;">
									<b>
									Page: {offpage} of {totalpages}
									&nbsp;&nbsp;-&nbsp;&nbsp;
									{navfirst}
									{navprev}
									{navnext}
									{navlast}
									&nbsp;&nbsp;-&nbsp;&nbsp;
									Jump to page:
									<input type="hidden" value="{module}" name="module" id="module" />
									<input type="hidden" value="{totalpages}" name="totalpages" id="totalpages" />
									<input type="hidden" value="{offpage}" name="currpage" id="currpage" />
									<input type="text" value="{offpage}" name="jumppage" id="jumppage" size="3" maxlength="3" class="fileds_comment" />
									<input type="button" name="jump" value="Go" class="fileds_comment"
										onclick="jumpPage();"
									> 
									<!--
									<a href="{navfirst}">First</a>&nbsp;&nbsp;|
									<a href="{navprev">Previous</a>&nbsp;&nbsp;|
									<a href="{navnext}">Next</a>&nbsp;&nbsp;|
									<a href="{navlast}">Last</a>
									-->
									</b>
								</td>
                            </tr>
                            <!-- BEGIN AFSDBEmpty -->
                            <tr>
                              <td class="fileds_comment" colspan="6" bgcolor="#F6F6F6">database
                                empty</td>
                            </tr>
                            <!-- END AFSDBEmpty -->
                          </table>
                        </form>
                      </td>
                    </tr>
                    <tr>
                      <td align="center" valign="top"><img src="images/spacer.gif" width="10" height="15"></td>
                    </tr>
                    <tr>
                      <td align="center" valign="top" class="fileds_comment">Tampering
                        with this system is criminally punishable under Philippine
                        Laws.<br>
                        &copy; Republic of the Philippines National Computer Center.
                        All Rights Reserved. </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <a name="#down"></a></td>
          <td background="images/inner_16.jpg"> <img SRC="images/spacer.gif " WIDTH=36 HEIGHT=375 ></td>
          <td> <img SRC="images/inner_17.jpg" WIDTH=17 HEIGHT=375 ></td>
        </tr><tr>
          <td> <img SRC="images/inner_18.jpg" WIDTH=18 HEIGHT=39></td>
          <td> <img SRC="images/inner_19.jpg" WIDTH=27 HEIGHT=39></td>
          <td> <img SRC="images/inner_20.jpg" WIDTH=355 HEIGHT=39></td>
          <td> <img SRC="images/inner_21.jpg" WIDTH=243 HEIGHT=39></td>
          <td> <img SRC="images/inner_22.jpg" WIDTH=104 HEIGHT=39></td>
          <td> <img SRC="images/inner_23.jpg" WIDTH=36 HEIGHT=39></td>
          <td> <img SRC="images/inner_24.jpg" WIDTH=17 HEIGHT=39></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>
</html>
